﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace tour.szhome.manage.area
{
    public class ManageAreaRegistration:AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "TOUR.SZHOME.Manage.Area";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                name: "TOUR.SZHOME.Manage.Area_Default",
                url: "manage/{controller}/{action}/{id}",
                defaults: new { controller = "login", action = "index", id = UrlParameter.Optional },
                //constraints: new { controller = "(home|login)" },
                namespaces: new[] { "TOUR.SZHOME.Manage.Area.Controllers" }
            );
        }
    }
}